//
//  ios_dec_subtitle.h
//  EKK_Player_Lib
//
//  Created by xl on 11-7-21.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//
#ifndef IOS_DEC_SUBTITLE_H
#define IOS_DEC_SUBTITLE_H

#ifdef __cplusplus
extern "C"
{
#endif

#include "ekk_interface.h"

#if EKK_ENABLE_SUBTITLE

#include "ekk_subtitle/ekk_subtitle_dec_pic.h"
typedef void* IOS_DEC_SUBTITLE_HANDLE;
void ios_dec_subtitle_init();
void ios_dec_subtitle_uninit();
IOS_DEC_SUBTITLE_HANDLE ios_dec_subtitle_create();
void ios_dec_subtitle_close(IOS_DEC_SUBTITLE_HANDLE hd);
void ios_dec_set_attribute_subtitle(int* x,int* y,unsigned long* rgba,char* fonttype,int* fontsize,IOS_DEC_SUBTITLE_HANDLE hd);
void ios_dec_get_attribute_subtitle(int* x,int* y,unsigned long* rgba,char** fonttype,int* fontsize,IOS_DEC_SUBTITLE_HANDLE hd);
void ios_dec_subtitle_to_bitmap(unsigned char** bitmap,char* txt,IOS_DEC_SUBTITLE_HANDLE hd);
//void dec_subtitle_to_bitmap_by_keys_ios(unsigned char* bitmap,char* txt,int* x, int* y, unsigned long* rgba,char* fonttype,int* fontsize);
void ios_dec_subtitle_get_empty_bitmap(unsigned char** bitmap,IOS_DEC_SUBTITLE_HANDLE hd);

#endif /*#if EKK_ENABLE_SUBTITLE*/
	
#ifdef __cplusplus
}
#endif

#endif